const db = require('../db/index');
const DataType = require('sequelize');
/**es6继承 会员卡表*/
class Instructions extends DataType.Model {}
Instructions.init(
    {
        id: {
            type: DataType.INTEGER,
            allowNull: false,
            autoIncrement: true,
            primaryKey: true
        },
        membersRoles: {
            type: DataType.TEXT,
            comment: '会员卡规则',
            allowNull: false
        },
        timeCardRoles: {
            type: DataType.TEXT,
            comment: '次卡规则',
            defaultValue: 0,
            allowNull: false
        },
        shareRoles: {
            type: DataType.TEXT,
            comment: '邀请规则',
            defaultValue: 0,
            allowNull: false
        }
    },
    {
        tableName: 'instructions',
        modelName: 'instructions',
        sequelize: db
    }
);
// Instructions.sync({ force: true });
exports['default'] = Instructions;
